import { Http } from '@angular/http';
import { Component } from '@angular/core';

import '../assets/css/bootstrap.min.css';
import '../assets/css/styles.css';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  constructor(private http:Http){
    this.http.post('/test/api/oldPeople/register', {"loginName": "deheya",
    "mobile": "18566666666",
    "name": "德赫亚",
    "password" : "123456",
    "idCard" : "123456789987654321",
    "liveCommunityCode" : "370000000"
  }).subscribe(data=>{
      console.log(data);
    });
  }
 }
